﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Framework;

namespace Enterprise.Admin.Handle.Project
{
    public partial class GetDetailJson : AdminBasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var id = Fq("id").SafeToInt();
            var projectService = new ProjectService();
            var row = projectService.GetById(id);
            object result = new
            {
                CoProjectId = row["CoProjectId"].SafeToInt(),
                CoName = row["CoName"].SafeToString(),
                CoNameEn = row["CoNameEn"].SafeToString(),
                CoContent = row["CoContent"].SafeToString(),
                CoContentEn = row["CoContentEn"].SafeToString(),
                CoSort = row["CoSort"].SafeToInt(),
                CoIsDelete = row["CoIsDelete"].SafeToBool()
            };
            Json(result);

        }
    }
}